package com.manycomp;

import java.util.Comparator;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:周次煜
 * Date: 2024-03-08
 * Time：11:20
 */
public class AgeSort implements Comparator<Student1>{


        @Override
        public int compare(Student1 o1, Student1 o2) {
            return o1.age-o2.age;
        }

}
